﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace LANBoardGameHelper
{    
    [ServiceContract]
    public interface ILANBoardGameHelper
    {

        [OperationContract]
        int RollSixSidedDie(int sessionID);

        [OperationContract]
        int CreateSessionID();

        [OperationContract]
        int[] GetHistoricalRolls(int sessionID, int lastRollRetrieved);

        [OperationContract]
        string GetAllCatanPlayerResources(int sessionID);
        //int[,] GetAllCatanPlayerResources(int sessionID); //Can't support multidimensional arrays - how about json objects - pass as string parse back to object?
        //http://blogs.microsoft.co.il/blogs/pini_dayan/archive/2009/03/12/convert-objects-to-json-in-c-using-javascriptserializer.aspx
        [OperationContract]
        string GetCatanPlayerResources(int sessionID, int playerID);
    }    
}
